﻿#include "CDevPoint.h"


CDevPoint::CDevPoint(const QString& sId, const QString& sName, const QString & sConfig /*= ""*/, QObject* parent /*= nullptr*/, EPointType type /*= EPointType::enAnalog*/, const QString& unit /*= ""*/)
	: CMeasurePoint(sId, sName, sConfig, parent, type, unit)
{

}

CDevPoint::~CDevPoint()
{}

void CDevPoint::start()
{

}

void CDevPoint::stop()
{

}

void CDevPoint::updateData()
{

}

void CDevPoint::setValue(const QVariant& value)
{
	if (isValidValue(value))
	{
		m_vValue = value;
		m_lastUpdateTime = QDateTime::currentDateTime();
		updateData();
	}
}
